PACKAGE
[root]
Global namespace containing types and functions accessible without any namespace prefix.
Types
big_integer
An immutable signed integer type, supporting extremely large values (upwards of 100,000 decimal digits).
boolean
A data type with two possible values: true and false.
byte_array
An array of bytes. This type is immutable.
collection
A generic type for mutable ordered collections of elements. Subtype of iterable. Supports many
decimal
A real number data type with high precision.
entity
Parent of all entity types. An entity is a data structure that resides in the SQL database.
enum
An enum is a set of member constants who share a type.
gtv
Generic Transfer Value (GTV) is a data type for the serialization and transfer of structured data, much
gtx_operation
gtx_transaction
gtx_transaction_body
immutable_mirror_struct
integer
A 64-bit signed integer type, ranging from -2^63 to (2^63)-1, supporting a standard
iterable
A generic type for sequences that can be iterated over, such as collections, ranges and maps.
json
A JSON (JavaScript Object Notation) datatype.
list
Represents a mutable array list. Subtype of collection.
map
A mutable map from keys of type K to values of type V, where K is immutable, and V may be either
map_entry
A supertype of all two-element tuples (K, V) (with named and unnamed fields), where K is an
mirror_struct
mutable_mirror_struct
null_ext
object
Parent of all object types. An object is a singleton data structure that resides in the SQL database.
operation
range
A range of integer values. Ranges represent arithmetic sequences with defined start and end points, and
rowid
The primary key of a database record.
set
A mutable set of elements of type T, where T is immutable. Subtype of collection. Implemented
struct
text
An immutable character string data type.
try_call_result
Type representing the result of a function call that may have thrown a require exception.
unit
A type with no member values, much like void in other languages.
virtual
virtual_collection
virtual_list
virtual_map
virtual_set
Functions
abs
Returns the absolute value of a integer value; i.e. the value itself if it's positive or its negation if
empty
Checks if a value is absent, i.e. null or empty.
eth_ecrecover
Compute an Ethererum public key from a signature and a hash.
exists
Checks if a value is present, i.e. not null and not empty.
is_signer
Check if a given public key is a signer of the current transaction; i.e. if it's in the list of signers
keccak256
Compute the Keccak256 digest (hash) of the given byte array.
log
Prints the given value(s) to the log, with a timestamp, and then terminates the line.
max
Returns the greater of two integer values; i.e. a if a > b, or b otherwise.
min
Returns the lesser of two integer values; i.e. a if a < b, or b otherwise.
print
Prints the given value(s) to STDOUT, and then terminates the line.
require
Asserts a boolean condition.
requireNotEmpty
Asserts that a list is non-null and non-empty.
require_not_empty
Asserts that a list is non-null and non-empty.
sha256
Compute the SHA-256 digest (hash) of the given byte array.
try_call
Safely call a function that may fail (i.e. that may throw an exception).
try_call_catch
Safely call a function that may fail (i.e. that may throw an exception), returning a result that can be
verify_signature
Verify a signature against a message and public key.
Aliases
GTXValue
Generic Transfer Value (GTV) is a data type for the serialization and transfer of structured data, much
name
An immutable character string data type.
pubkey
An array of bytes. This type is immutable.
timestamp
A 64-bit signed integer type, ranging from -2^63 to (2^63)-1, supporting a standard
© 2026 Chromia